package mysql

import "gorm.io/gorm"

type Goods struct {
	gorm.Model
	Name  string  `gorm:"type:varchar(50)"`
	Num   int     `gorm:"type:int(11)"`
	Price float64 `gorm:"type:decimal(10,2)"`
}
type User struct {
	gorm.Model
	UserName string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}

func (u *User) CreatUser(db *gorm.DB) error {
	return db.Debug().Create(u).Error
}
